</html>
 <head>
        <title>Input Type</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
       
        <link rel="stylesheet" href="css/styless.css" type="text/css" media="screen"/>
		<link rel="stylesheet" type="text/css" href="css/admin_templatemo_style.css"  />
	<link rel="stylesheet" type="text/css" href="css/menu.css"  />
	 <link rel="stylesheet" href="css/styless.css" type="text/css" media="screen"/>
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min.js"></script>
	<link rel="stylesheet" type="text/css" href=" css/jquery-ui-1.8.22.custom.css"/>
        <script type="text/javascript" src="js/sliding.form.js"></script>
		
		
		</head>
		<body>
<?php 


include 'db_connect.php';

$brand= $_GET['brand'];

$query= "SELECT id, modelname FROM tblmodel WHERE brandId='$brand'";
$result=mysql_query($query) or die (mysql_error());
?>

<select name="model" >
 <option>Select Model</option>
<?php while($row=mysql_fetch_assoc($result)) { ?>
<option value= "<?php if ( $row['id']) { echo $row['modelname']; } else { echo $row ['modelname']; }?>">
<?php if ( $row['id']) { echo $row['modelname']; } else { echo $row ['modelname']; }?>

</option>
<?php } ?>


</select>
</body>
</html>
